{% extends "learning_logs/base.html" %}
{% block content %}
<p><a href="{% url 'learning_logs:topic' topic.id %}">{{topic}}</a></p>

<p>Add a new entry</p>

<p><a href="{% url 'learning_logs:topic' topic.id %}">{{topic}}</a></p>

<p>Edit entry</p>

<form action="{% url 'learning_logs:edit_entry' entry.id %}" method='POST'>
	{% csrf_token %}
	<!-- 让 Django 自动创建显示表单所需的全部字段 -->
	{{form.as_p}}
	<button name='submit'>add entry</button>
</form>

{% endblock content %}
